import { createStore, combineReducers, applyMiddleware } from 'redux';
import thunk from "redux-thunk"
import { CountReducer } from "./reducer"
import { ListReducer } from './listReducer'
// 异步actions

let reducer = combineReducers({
  'a': CountReducer,
  'b': ListReducer
});
// createStore(reducer, 第二个参数是可选的, 用于设置 state 初始状态或者是异步的库。)
const store = createStore(reducer, applyMiddleware(thunk))
console.log("store", store) //{a:{},b:{}}

export default store;